<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>librf: librf/src/mutex_v2.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">librf
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3c80010775d22af2067790ecc9cdcf9d.html">librf</a></li><li class="navelem"><a class="el" href="dir_54ae0e78d997f6903cdf0996223d047f.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">mutex_v2.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160; </div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">namespace </span>resumef</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;{</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;    <span class="keyword">namespace </span>detail</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;    {</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;        <span class="keyword">struct </span>mutex_v2_impl;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    }</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    <span class="keyword">inline</span> <span class="keyword">namespace </span>mutex_v2</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    {</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160; </div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="structresumef_1_1adopt__manual__unlock__t.html">   17</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a>{};</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        constexpr <a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> adopt_manual_unlock;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;        <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs&gt;</div>
<div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="structresumef_1_1batch__unlock__t.html">   28</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structresumef_1_1mutex__t.html">   34</a></span>&#160;        <span class="keyword">struct </span><a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;        {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;            <span class="keywordtype">bool</span> is_locked() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160; </div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;            <span class="keyword">struct </span>lock_awaiter;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;            <span class="keyword">struct </span>[[nodiscard]] awaiter;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;            <span class="keyword">struct </span>[[nodiscard]] manual_awaiter;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;            awaiter<span class="comment">/*batch_unlock_t*/</span> lock() <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;            </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;            awaiter<span class="comment">/*batch_unlock_t*/</span> <span class="keyword">operator</span> co_await() <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;            manual_awaiter<span class="comment">/*void*/</span> lock(<a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> manual_unlock_tag) <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;            <span class="keyword">struct </span>[[nodiscard]] try_awaiter;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            try_awaiter<span class="comment">/*bool*/</span> try_lock() <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;            <span class="keyword">struct </span>[[nodiscard]] unlock_awaiter;</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            unlock_awaiter<span class="comment">/*void*/</span> unlock() <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160; </div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;            <span class="keyword">struct </span>[[nodiscard]] timeout_awaiter;</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period&gt;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            timeout_awaiter<span class="comment">/*bool*/</span> try_lock_for(<span class="keyword">const</span> std::chrono::duration&lt;_Rep, _Period&gt;&amp; dt) <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period&gt;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            timeout_awaiter<span class="comment">/*bool*/</span> try_lock_until(<span class="keyword">const</span> std::chrono::time_point&lt;_Rep, _Period&gt;&amp; tp) <span class="keyword">const</span> noexcept;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160; </div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <span class="keywordtype">void</span> lock(<span class="keywordtype">void</span>* unique_address) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;            <span class="keywordtype">bool</span> try_lock(<span class="keywordtype">void</span>* unique_address) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period&gt;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;            <span class="keywordtype">bool</span> try_lock_for(<span class="keyword">const</span> std::chrono::duration&lt;_Rep, _Period&gt;&amp; dt, <span class="keywordtype">void</span>* unique_address);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            <span class="keyword">template</span> &lt;<span class="keyword">class</span> _Rep, <span class="keyword">class</span> _Period&gt;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordtype">bool</span> try_lock_until(<span class="keyword">const</span> std::chrono::time_point&lt;_Rep, _Period&gt;&amp; tp, <span class="keywordtype">void</span>* unique_address);</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            <span class="keywordtype">void</span> unlock(<span class="keywordtype">void</span>* unique_address) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160; </div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;                , <span class="keyword">typename</span> = std::enable_if_t&lt;std::conjunction_v&lt;std::is_same&lt;remove_cvref_t&lt;_Mtxs&gt;, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&gt;...&gt;&gt;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;            &gt;</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;            <span class="keyword">static</span> <a class="code" href="structresumef_1_1future__t.html">future_t</a>&lt;<a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a>&lt;_Mtxs...&gt;&gt; lock(_Mtxs&amp;... mtxs);</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160; </div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;                , <span class="keyword">typename</span> = std::enable_if_t&lt;std::conjunction_v&lt;std::is_same&lt;remove_cvref_t&lt;_Mtxs&gt;, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&gt;...&gt;&gt;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;            &gt;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;            <span class="keyword">static</span> <a class="code" href="structresumef_1_1future__t.html">future_t&lt;&gt;</a> lock(<a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> manual_unlock_tag, _Mtxs&amp;... mtxs);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                , <span class="keyword">typename</span> = std::enable_if_t&lt;std::conjunction_v&lt;std::is_same&lt;remove_cvref_t&lt;_Mtxs&gt;, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&gt;...&gt;&gt;</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            &gt;</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <span class="keyword">static</span> <a class="code" href="structresumef_1_1future__t.html">future_t&lt;&gt;</a> unlock(_Mtxs&amp;... mtxs);</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;                , <span class="keyword">typename</span> = std::enable_if_t&lt;std::conjunction_v&lt;std::is_same&lt;remove_cvref_t&lt;_Mtxs&gt;, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&gt;...&gt;&gt;</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;            &gt;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <span class="keyword">static</span> <a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a>&lt;_Mtxs...&gt; lock(<span class="keywordtype">void</span>* unique_address, _Mtxs&amp;... mtxs);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;                , <span class="keyword">typename</span> = std::enable_if_t&lt;std::conjunction_v&lt;std::is_same&lt;remove_cvref_t&lt;_Mtxs&gt;, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&gt;...&gt;&gt;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            &gt;</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;            <span class="keyword">static</span> <span class="keywordtype">void</span> lock(<a class="code" href="structresumef_1_1adopt__manual__unlock__t.html">adopt_manual_unlock_t</a> manual_unlock_tag, <span class="keywordtype">void</span>* unique_address, _Mtxs&amp;... mtxs);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160; </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;                , <span class="keyword">typename</span> = std::enable_if_t&lt;std::conjunction_v&lt;std::is_same&lt;remove_cvref_t&lt;_Mtxs&gt;, <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&gt;...&gt;&gt;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            &gt;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;            <span class="keyword">static</span> <span class="keywordtype">void</span> unlock(<span class="keywordtype">void</span>* unique_address, _Mtxs&amp;... mtxs);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160; </div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;            <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>();</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160; </div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;            <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>(std::adopt_lock_t) noexcept;</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            ~<a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>() noexcept;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160; </div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>(<span class="keyword">const</span> <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>(<a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;            <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            <a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&amp; operator = (<a class="code" href="structresumef_1_1mutex__t.html">mutex_t</a>&amp;&amp;) = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160; </div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;<span class="preprocessor">#ifndef DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;            <span class="keyword">typedef</span> std::shared_ptr&lt;detail::mutex_v2_impl&gt; mutex_impl_ptr;</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            <span class="keyword">typedef</span> std::chrono::system_clock clock_type;</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        <span class="keyword">private</span>:</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            <span class="keyword">struct </span>_MutexAwaitAssembleT;</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160; </div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            <span class="keyword">template</span>&lt;<span class="keyword">class</span>... _Mtxs&gt; <span class="keyword">friend</span> <span class="keyword">struct </span><a class="code" href="structresumef_1_1batch__unlock__t.html">batch_unlock_t</a>;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160; </div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            mutex_impl_ptr _mutex;</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;<span class="preprocessor">#endif  //DOXYGEN_SKIP_PROPERTY</span></div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        };</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    }</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructresumef_1_1adopt__manual__unlock__t_html"><div class="ttname"><a href="structresumef_1_1adopt__manual__unlock__t.html">resumef::adopt_manual_unlock_t</a></div><div class="ttdoc">提示手工解锁，故相关的lock()函数不再返回batch_unlock_t。</div><div class="ttdef"><b>Definition:</b> mutex_v2.h:17</div></div>
<div class="ttc" id="astructresumef_1_1future__t_html"><div class="ttname"><a href="structresumef_1_1future__t.html">resumef::future_t</a></div><div class="ttdoc">用于resumef协程的返回值。</div><div class="ttdef"><b>Definition:</b> future.h:14</div></div>
<div class="ttc" id="astructresumef_1_1batch__unlock__t_html"><div class="ttname"><a href="structresumef_1_1batch__unlock__t.html">resumef::batch_unlock_t</a></div><div class="ttdoc">在析构的时候自动解锁mutex_t的辅助类。</div><div class="ttdef"><b>Definition:</b> mutex_v2.h:28</div></div>
<div class="ttc" id="astructresumef_1_1mutex__t_html"><div class="ttname"><a href="structresumef_1_1mutex__t.html">resumef::mutex_t</a></div><div class="ttdoc">支持递归的锁。</div><div class="ttdef"><b>Definition:</b> mutex_v2.h:34</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
